package com.front.managementfront.config.mybatispage;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.aop.interceptor.PerformanceMonitorInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassNameMybatisPlusConfig
 * @Description
 * @Author yck
 * @Date2021-08-05 11:17
 * @Version V1.0
 **/
/*@EnableTransactionManagement
@Configuration
@MapperScan("com.front.managementfront.*.mapper.*")*/
public class MybatisPlusConfig {
    /**
     * mybatis-plus SQL执行效率插件【生产环境可以关闭】
     */
  /*  @Bean
    public PerformanceMonitorInterceptor performanceInterceptor() {

        return new PerformanceMonitorInterceptor();
    }*/

    /*
     * 分页插件，自动识别数据库类型 多租户，请参考官网【插件扩展】
     */
    /*@Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }*/
}
